package com.base.api;

import com.base.bean.CommonFile;
import com.base.service.ICommonFileService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class ApiCommonFileServiceImpl implements ApiCommonFileService {

    @Autowired
    private ICommonFileService commonFileService;

    @Override
    public CommonFile getByFileCode(String code) {
        return commonFileService.getByFileCode(code);
    }

    @Override
    public int insertCommonFile(CommonFile file) {
        return commonFileService.insertCommonFile(file);
    }

    @Override
    public int deleteOutCommonFile() {
        return commonFileService.deleteOutCommonFile();
    }

    @Override
    public int makeFileOut(String code) {
        return commonFileService.makeFileOut(code);
    }
}
